package com.eastfair.messagecenter.hystrix;

import com.eastfair.core.base.R;
import com.eastfair.messagecenter.api.MsgServiceFeign;
import com.eastfair.messagecenter.dto.InnerSendDTO;
import com.eastfair.messagecenter.dto.SmsSendDTO;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 用户API熔断
 *
 * @author zuihou
 * @date 2019/07/23
 */
@Component
public class MsgApiFallback implements MsgServiceFeign {


    @Override
    public R sendSmsMsg(SmsSendDTO smsSendDTO) {
        return R.timeout();
    }

    @Override
    public R sendInnerInMsg(InnerSendDTO innerSendDTO) {
        return R.timeout();
    }
}
